<div class="tab-pane">
   <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <h1 class="page-header">日程表</h1>
    <h6><button type="button" class="btn btn-success btn-xs" data-toggle="modal" data-target="#addquery"><span class="glyphicon glyphicon-plus-sign"></span> 添加任务</button></h6>

    <div class="modal fade" id="addquery" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
     <div class="modal-content">
      <div class="modal-header">
       <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
       <h4 class="modal-title" id="myModalLabel"><span class="glyphicon glyphicon-plus-sign"></span> 添加任务信息</h4>
      </div>
      <div class="modal-body">
       <form class="form-horizontal" role="form">
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label"></label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-time"></span>
           </div>
           <input type="Texi" class="form-control" id="query-time" placeholder="时间"  value=" <?php echo date('Y-m-d H:i',time()); ?>">
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label"></label>
         <div class="col-sm-10">
          <div class="input-group query_call_error">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-phone"></span>
           </div>
           <input type="Texi" class="form-control" id="query-call" placeholder="客户手机号">
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label"></label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-book"></span>
           </div>
           <input type="Texi" class="form-control" id="query-content" placeholder="问题描述">
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label"></label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-home"></span>
           </div>
           <input type="Texi" class="form-control" id="query-addr" placeholder="地址">
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label"></label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-user"></span>
           </div>
           <input type="Texi" class="form-control" id="query-name" placeholder="接手人" disabled="disabled" value="<?php echo $_SESSION['username']; ?>">
          </div>
         </div>
        </div>
       </form>
      </div>
      <div class="modal-footer">
       <button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> 关闭</button>
       <button type="button" class="btn btn-primary" onclick="query_add();"><span class="glyphicon glyphicon-ok"></span> 确定</button>
      </div>
     </div>
    </div>
   </div>

    <div class="row placeholders">
      <div class="row">
        <h3 class="col-md-12">
            <p class="col-md-4 query_num"><span class="glyphicon glyphicon-th-list" style="color:orange;" aria-hidden="true"></span> 未完成任务:<strong class="num"> <a href="#" onclick="query_table_no();"  style="color:orange;" id="query_num0"><?php num('xrk_query','start','0'); ?> </a></strong>个</p>
            <p class="col-md-4 query_num"><span class="glyphicon glyphicon-ok-sign" style="color:green;" aria-hidden="true"></span> 已完成任务: <strong class="num"> <a href="#" onclick="query_table_ok();" style="color:green;" id="query_num1"><?php num('xrk_query','start','1'); ?> </a></strong>个</p>
            <p class="col-md-4 query_num"><span class="glyphicon glyphicon-remove-sign" style="color:red;" aria-hidden="true"></span> 已取消任务:<strong class="num"> <a href="#" onclick="query_table_call();" style="color:red;" id="query_num2"><?php num('xrk_query','start','2'); ?> </a></strong>个</p>
        </h3>
  </div>
    </div>
    <h2 class="sub-header title">当前任务</h2>
    <div class="table-responsive" >
      <table class="table table-hover">
        <thead>
            <tr class="alert alert-info">
                <th>时间</th>
                <th>客户手机</th>
                <th>任务描述</th>
                <th>任务进度</th>
                <th>地址</th>
                <th>发布者</th>
                <th>操作</th>
            </tr>
        </thead>
            <tbody id="query-info">
                   <?php query_query("0"); ?>
            </tbody>
         </table>
    </div>
   </div>
  </div>
